﻿using System;
using System.Runtime.Serialization;
using nRoute.Components;

namespace nRoute.Navigation.Containers
{
#if (!SILVERLIGHT)
    [Serializable]
#endif
    [DataContract]
    public class PageContentState
    {
        private string _url;
        private string _title; 
        private ParametersCollection _state;

        public PageContentState()
        {   
        }

        public PageContentState(string url, string title, ParametersCollection state)
        {
            _url = url;
            _title = title;
            _state = state;
        }

#region Properties

        [DataMember]
        public virtual string Url
        {
            get { return _url; }
            set { _url = value; }
        }

        [DataMember]
        public virtual string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        [DataMember]
        public virtual ParametersCollection State
        {
            get { return _state; }
            set { _state = value; }
        }

#endregion

    }
}
